package capricornus.utils
{
	public class MathUtils
	{
		public static const PI2:Number = Math.PI * 2;
		
		public function MathUtils()
		{
		}
		
		public static function scaleFit( srcWidth:Number, srcHeight:Number, desWidth:Number, desHeight:Number ):Array
		{
			var f:Number = Math.min( desWidth/srcWidth, desHeight/srcHeight );
			return [srcWidth*f, srcHeight*f];
		}
		
		private static var _uid:uint = 1;
		public static function getUniqueID():uint
		{
			return _uid++;
		}
	}
}